# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=ifupdown-ng
pkgver=0.5.0
pkgrel=0
pkgdesc="tools for managing network configuration"
url="https://github.com/ifupdown-ng/ifupdown-ng"
arch="all"
license="ISC"
depends=""
checkdepends="kyua atf"
makedepends="scdoc"
install=""
subpackages="$pkgname-doc"
source="https://distfiles.dereferenced.org/ifupdown-ng/ifupdown-ng-$pkgver.tar.xz"
builddir="$srcdir/ifupdown-ng-$pkgver"

# We only install the core executors right now.  The other executors are
# still being ported to run under ifupdown-ng natively, and so we will
# use the ifupdown scripts for now for those cases.
_executor_scripts="dhcp ipv6-ra static link"

build() {
	make
	make docs
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" EXECUTOR_SCRIPTS="$_executor_scripts" install install_docs
}

sha512sums="da7cbc7b114eaca7f69c8d846aa42fc45003931ffbe8b02cee16ac6a6d4c454e2bc13bd339ecdcaedec70792db85365fa0866cb74f4c5678b61d53dfdf672e08  ifupdown-ng-0.5.0.tar.xz"
